package com.qigao.mall.jdbc.mapper;

import com.qigao.mall.jdbc.model.TbShopCart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbShopCartMapper extends AbstractTbShopCartMapper {

    TbShopCart selectByIndex(@Param("userNo") String userNo, @Param("itemNo")String itemNo);

    void addShopCart(TbShopCart tbShopCart);

    List<TbShopCart> selectByUserNo(String currentUserNo);

    void deleteByIndexNos(List<TbShopCart> itemIndexNos);
}